package dayOOP0714;
public class Test4 {
    public static void main(String[] args) {
        Student zhangSan=new Student(5000);
        new Test4().test(zhangSan);
        System.out.println(zhangSan.money);
    }

    private void test(Student xiaoZhang) {
        xiaoZhang.money=3000;
    }
}//通过zhangSan和xiaoZhang两个名称修改同一个人的财产

class  Student{
    double money;
    public Student(double n) {this.money=n; }
}




